package api.event
{
	public class CallFunName
	{
		//API调用Game的function
		
		public static var G_INIT_API_COM:String="initAPIcom";//InitAPI.as >>initAPIcom(data:*)成功注册API基础组件
		public static	var G_INIT_PVP:String="initPVP";//Game.as/GameOver.as >>initPVP().游戏时和机器人玩有用户加入/游戏结束后更换玩家;
		public static var G_START_GAME:String="startGame";//InitAPI.as >>startGame(data:*)如data=="true",表示机器人模式.
		public static var G_SET_USER_INFO:String="setUserInfo";//InitAPI.as >>setUserInfo(userInfo:GameUserInfo).
		public static var G_SET_MY_INFO:String="setMyInfo";//InitAPI.as >>setMyInfo(userInfo:GameUserInfo).
		public static	var G_STOP_GAME:String="stopGame";//InitAPI.as/Game.as/GameOver.as >>stopGame(isStop:Boolean).终止游戏
		public static	var G_AGAIN:String="again";//GameOver.as>>again().再来一次
		public static	var G_WANT_AGAIN:String="wantAgain";//GameOver.as>>again().再来一次
		public static	var G_USER_CHANGE:String="UseChange";//Game.as/GameOver.as>>UseChange(isAdd).游戏时用户离开
		
		//Game调用API的function
		
		public static var A_INIT_API:String="initAPI";//>>initAPI(data:InitAPIObj)初始API组件.
		public static var A_BUY_ITIM:String="buyItim";//>>buyItim(data)调用购买道具接口.
		public static var A_USE_ITIM:String="useItim";//buyItim(data)获取道具列表接口.
		public static var A_GET_ONE_ITIM:String="getOneItim";//getOneItim(data)获取一个道具接口.
		public static var A_GET_ALL_ITIM:String="getAllItim";//getAllItim(data)获取所有道具接口.
		public static var A_SAVE_STORE:String="saveStore";//saveStore()设置存档
		public static var A_READ_STORE:String="readStore";//readStore()读取存档.
		public static var A_SET_RECORD:String="setRecord";//setRecord(score:uint)保存游戏进度.
		public static var A_DIS_WAIT_DATA:String="disWaitData";//isDisWaitData(isDis)显示等待数据提示;
		public static var A_DEL_WAIT_DATA:String="delWaitData";//isDisWaitData(isDis)删除等待数据提示;
		public static var A_IS_TURN_ME:String="isTurnMe";//isTurnMe(isME)是否轮到我;
		public static var A_API_ALERT:String="apiAlert";//apiAlert(str)提示框;
		public static var A_DIS_INIT_CLEW:String="disInitClew";//apiAlert(str)提示框;
		public static var A_DEL_ALL_ALERT:String="delAllAlert";//apiAlert(str)提示框;
		public static var A_SHOW_RECOMMEND:String = "showRecommend";//显示推荐
		public static var A_IS_SHOW_RECOMMENDBTN:String = "isDisRecommandBtn";//isDisRecommandBtn(isDis:Boolean)是否显示推荐按钮
		public static var A_GAME_START:String = "gameStart";//gameStart()游戏开始
		public static var A_GAME_OVER:String = "gameOver";//gameOver()游戏结束
		public static var A_ASK_AGAIN:String = "askAgain";//askAgain()发送再来一次请求
		public static var A_SET_INIT_PVP:String = "setInitPVP";//setInitPVP()初始化PVP组件
		public static var A_CHANGE_PLAYER:String = "changePlayer";//changePlayer()更换玩家
		public static var A_ACCEPT_AGAIN:String = "acceptAgain";//acceptAgain()接受再次请求
		public static var A_QUIT_ROOM:String = "quitRoom";//acceptAgain()断开pvp连接;
		public static var A_SET_GAME_STATE:String = "setGameStae";//setGameStae(false)设置API里游戏状态是否开始
		public static var A_SET_FACE_LIST:String = "setFaceList";//showFaceList(isShow:Boolean,point:Point=null,callBack:Function=null)显示/删除表情列表
		public static var A_SHARE_WB:String = "shareWB";//shareWB(ShareWBVO)分享到微博
		
		
			
		//API_A调用API_B的function
		public static var AA_TEMP:String="temp";//InitAPI.as >>setUserInfo(userInfo:GameUserInfo).
	}
}


